<?php 
	require_once('function/connectDB.php');
	//var_dump($_POST['email']); var_dump($_POST['id']); die("fdfs");
	$sql = "UPDATE email SET email='".$_POST['email']."' WHERE id=".$_POST['id']." AND email NOT LIKE '".$_POST['email']."'";
	$result = mysql_query($sql);
	if($result)
	{
		echo 'edited';
	}
	else	
	{
		echo 'nonedit';
	}
?>